<html><head><title>GetJSONFloat</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">GetJSONFloat()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result.f = <font color="#006666"><b>GetJSONFloat</b></font>(JSONValue)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Return the value of a JSON value of <a href="jsontype.html">type</a> <font color="#924B72">#PB_JSON_Number</font> 
as a single precision floating point value. 
<br>
<br>
A JSON value can be set to a number with <a href="setjsondouble.html">SetJSONDouble()</a>, <a href="setjsonfloat.html">SetJSONFloat()</a>, 
<a href="setjsoninteger.html">SetJSONInteger()</a> or <a href="setjsonquad.html">SetJSONQuad()</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>JSONValue</i></td>
<td width="90%"> 
The JSON value. The value must be of type <font color="#924B72">#PB_JSON_Number</font>. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

The number as a float. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2"><font color="#006666">  ParseJSON</font>(0, "[1, 1.23, 1.23e-3]")
  
  <b><font color="#006666">Debug</font></b> <font color="#006666">GetJSONFloat</font>(<font color="#006666">GetJSONElement</font>(<font color="#006666">JSONValue</font>(0), 0))
  <b><font color="#006666">Debug</font></b> <font color="#006666">GetJSONFloat</font>(<font color="#006666">GetJSONElement</font>(<font color="#006666">JSONValue</font>(0), 1))
  <b><font color="#006666">Debug</font></b> <font color="#006666">GetJSONFloat</font>(<font color="#006666">GetJSONElement</font>(<font color="#006666">JSONValue</font>(0), 2))
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="setjsondouble.html">SetJSONDouble()</a>, <a href="setjsonfloat.html">SetJSONFloat()</a>, <a href="setjsoninteger.html">SetJSONInteger()</a>, <a href="setjsonquad.html">SetJSONQuad()</a>, 
<a href="getjsonboolean.html">GetJSONBoolean()</a>, <a href="getjsondouble.html">GetJSONDouble()</a>, <a href="getjsonelement.html">GetJSONElement()</a>, <a href="getjsoninteger.html">GetJSONInteger()</a>, 
<a href="getjsonmember.html">GetJSONMember()</a>, <a href="getjsonstring.html">GetJSONString()</a>, <a href="getjsonquad.html">GetJSONQuad()</a>, <a href="jsontype.html">JSONType()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=getjsonelement.html>GetJSONElement()</a> - <a href=index.html>Json Index</a> - <a href=getjsoninteger.html>GetJSONInteger()</a> ->

</body></html>